import java.io.File;

public class IODeom3 {
    public static void main(String[] args) {
        File file = new File("./text.txt");
        File file2 = new File("./text2.txt");
        file.renameTo(file2); //重命名
    }
}
